package com.baidu.videoseries.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.baidu.videoseries.R;
import com.baidu.videoseries.ToolbarActivity;
import com.kvin.toolkit.utils.ToastUtils;

import butterknife.BindView;
import butterknife.ButterKnife;

public class TestActivity extends ToolbarActivity {

    private Button tagbutton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.adapter_audio);
        ButterKnife.bind(this);
        setTitle("Test");

        initView();
    }

    private void initView() {
        this.tagbutton = (Button) findViewById(R.id.tag_button);
        this.tagbutton.setTag("baseTag");
        this.tagbutton.setTag(R.string.id_a, "Tag_A");
        this.tagbutton.setTag(R.string.id_b, "Tag_B");

        this.tagbutton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ToastUtils.simpleToast(TestActivity.this, "tag_a=" + tagbutton.getTag(R.string.id_a) + " :tag_b=" + tagbutton.getTag(R.string.id_b) + " :tag=" + tagbutton.getTag());
            }
        });
    }
}
